package com.cjb.jenkins.web.controller;

import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author chenjingbing
 * 用于测试Jenkins 是否发布成功
 */
@Controller
@RequestMapping("/index")
public class IndexController {


    private final static Logger logger = LoggerFactory.getLogger(IndexController.class);






   @RequestMapping("/lists")
   @ResponseBody
   public String lists(){

        try{
            logger.info("【请求测试内容】");
            return "测试成功";
        }catch(Exception exception){
            logger.error("error: "+exception);
            return "启动测试失败";
        }
   }







}
